package cm.project;

import java.io.*;
import java.util.Scanner;

public class Test10 {
    public static void main(String[] args) throws IOException {

        System.out.println(sum("小"));


    }
    public static int  sum(String str){
        int count= 0;
        try {
            //创建一个字符缓冲流
            BufferedReader br=new BufferedReader(new FileReader("date.txt"));
            count = 0;
            String len=null;
            while ((len= br.readLine())!=null){
                if (len.contains(str)){
                    count++;
                }
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
        return count;
    }


}
